import request from '@/utils/request'

// 查询年级列表
export function listGrade(query) {
    return request({
        url: '/recitation_admin/grade/list',
        method: 'get',
        params: query,
    })
}

// 查询年级详细
export function getGrade(gradeId) {
    return request({
        url: '/recitation_admin/grade/' + gradeId,
        method: 'get'
    })
}

// 新增年级
export function addGrade(data) {
    return request({
        url: '/recitation_admin/grade/add',
        method: 'post',
        data: data
    })
}

// 修改年级
export function updateGrade(data) {
    return request({
        url: '/recitation_admin/grade/update',
        method: 'put',
        data: data
    })
}

// 删除年级
export function delGrade(gradeId) {
    return request({
        url: '/recitation_admin/grade/' + gradeId,
        method: 'delete'
    })
}
